{template 'common/header'}
<div class="main">
    <div class="panel panel-default">
        <div class="panel-heading">排行榜</div>
        <div class="panel-body">
            <table class="table table-bordered table-hover">
                <tbody>
                    <th>id</th>
                    <th>头像</th>
                    <th>用户名</th>
                    <th>分数</th>
                    <th>最高分数</th>
                    <th>时间</th>
                    <th>操作</th>
                </tbody>
                {loop $content $key $val}
                <tr>
                    <td>{$val['id']}</td>
                    <td><img src="{$val['avatar']}" alt="" width="20px"> </td>
                    <td>{$val['nickname']}</td>
                    <td>{$val['scores']}</td>
                    <td>{$val['maxscores']}</td>
                    <td>{php echo date("Y年m月d日 h:i:s",$val['datetime'])}</td>
                    <td><button type="button" class="btn btn-danger" onclick="window.location='{$url}&op=del&wid={$val[id]}'">删除</button></td>
                </tr>
                {/loop}
            </table>
            {$page}
        </div>
    </div>
</div>
{template 'common/footer'}